package com.fgi.interview.test.geekbang.innerClass;

/**
 * @author HanXu
 * @date 2023/9/17
 **/
public class Phone {
    // 属性
    private String brand;
    private String os;

    // TODO 静态内部类
    public static class CPU {
        private double speed;
        private String producer;

        public CPU(double speed, String producer) {
            this.speed = speed;
            this.producer = producer;
        }
    }

    // TODO 成员内部类
    public class CPUOther {
        private double speed;
        private String producer;

        public CPUOther(double speed, String producer) {
            this.speed = speed;
            this.producer = producer;
        }
    }

    public Phone(String brand, String os) {
        this.brand = brand;
        this.os = os;

        // TODO 局部内部类
        class CPUTWO {
            private double speed1;
            private String producer1;
        }
    }
}
